<!-- target:period -->
<div class="cont-tab" ui="type:NS.Tab;gesture:false;">
    <div class="cont">
        <strong class="sort-item">周收入</strong>

        <div class="book-index" ui="type:NS.BookIndex">
            <!-- for: ${period} as ${item} -->
            <div class="index-item">${item.year}</div>
            <!-- /for -->
        </div>
        <div ui="type:m-book">
            <strong class="book-item ui-hide">A</strong>
            <div class="book-item ui-hide">安徽</div>
            <!-- for: ${period} as ${item} -->
            <strong class="book-item">${item.year}年</strong>
                <!-- for: ${item.weeks} as ${week} -->
                <div class="book-item" ui="type:NS.DayItem;mtype:period;year:${item.year};index:${week.index};start:${week.start|dateFormat('yyyy-MM-dd')};end:${week.end|dateFormat('yyyy-MM-dd')};text:周收入${item.year}年第${week.index}周;">第${week.index}周（${week.start|dateFormat('MM月dd日')}-${week.end|dateFormat('MM月dd日')}）</div>
                <!-- /for -->
            <!-- /for -->
        </div>
    </div>
    <div class="cont">
        <strong class="sort-item">月收入</strong>

        <div class="book-index" ui="type:NS.BookIndex">
            <!-- for: ${period} as ${item} -->
            <div class="index-item">${item.year}</div>
            <!-- /for -->
        </div>
        <div ui="type:m-book">
            <strong class="book-item ui-hide">A</strong>
            <div class="book-item ui-hide">安徽</div>
            <!-- for: ${period} as ${item} -->
            <strong class="book-item">${item.year}年</strong>

                <!-- for: ${month} as ${_item} -->
                    <!-- if: ${item.year} < ${now.year} || (${item.year} == ${now.year} && ${_item} <= ${now.month}) -->
                    <div class="book-item" ui="type:NS.DayItem;mtype:month;year:${item.year};index:${_item};start:${item.year}-${_item}-01;end:${item.year}-${_item};text:月收入 ${item.year}年${_item}月;">${_item}月</div>
                    <!-- /if -->
                <!-- /for -->

            <!-- /for -->
        </div>
    </div>
    <div class="cont">
        <strong class="sort-item">自定义</strong>
        <ul class="day-title">
            <li>一</li>
            <li>二</li>
            <li>三</li>
            <li>四</li>
            <li>五</li>
            <li>六</li>
            <li>七</li>
        </ul>
        <div class="day-select" ui="type:m-book;id:month-book">
            <strong class="book-item ui-hide">A</strong>
            <div class="book-item ui-hide">安徽</div>
            <!-- for: ${custom} as ${item} -->
            <strong class="book-item">${item.year}年</strong>

                <!-- for: ${item.month} as ${_item} -->
                    <!-- var: monthNum = ${_item.month} < 10 ? '0' + ${_item.month} : ${_item.month} -->
                    <div class="book-item-title">${item.year}年${monthNum}月</div>
                    <div ui="type:NS.MonthView;date:${item.year}-={String.prototype.slice.call('0' +  ${_item.month}, -2)};extra:disable"></div>
                <!-- /for -->

            <!-- /for -->
        </div>
        <div class="day-preview" id="dayPreview">
            <div class="start">开始时间：</div>
            <div class="end">结束时间：</div>
            <div class="sure" ui="type:NS.SureBtn">确定</div>
        </div>
    </div>
</div>